using System.Collections.Generic;

namespace DnsService.Models
{
    /// <summary>
    /// DNS查询响应模型
    /// 作者：huobing
    /// </summary>
    public class DnsQueryResponse
    {
        /// <summary>
        /// 查询ID
        /// </summary>
        public ushort Id { get; set; }
        
        /// <summary>
        /// 响应标志
        /// </summary>
        public ushort Flags { get; set; }
        
        /// <summary>
        /// 查询数量
        /// </summary>
        public ushort QuestionCount { get; set; }
        
        /// <summary>
        /// 回答数量
        /// </summary>
        public ushort AnswerCount { get; set; }
        
        /// <summary>
        /// 权威记录数量
        /// </summary>
        public ushort AuthorityCount { get; set; }
        
        /// <summary>
        /// 附加记录数量
        /// </summary>
        public ushort AdditionalCount { get; set; }
        
        /// <summary>
        /// 回答记录
        /// </summary>
        public List<DnsAnswerRecord> Answers { get; set; } = new();
        
        /// <summary>
        /// 响应时间（毫秒）
        /// </summary>
        public long ResponseTimeMs { get; set; }
    }
}